package com.algo.pattern.model;

import java.util.Date;

/**
 * 商品库存DO
 */
public class ProductInventoryDTO {
    /**
     * 主键ID
     */
    private Long id;
    /**
     * 商品ID
     */
    private Long productId;
    /**
     * 商品可用库存
     */
    private Integer availableNum;
    /**
     * 商品冻结库存
     */
    private Integer freezeNum;
    /**
     * 商品总库存
     */
    private Integer totalNum;
    /**
     * 是否可售
     */
    private boolean canSale;
    /**
     * 创建日期
     */
    private Date gmtCreate;
    /**
     * 修改日期
     */
    private Date gmtModified;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getAvailableNum() {
        return availableNum;
    }

    public void setAvailableNum(Integer availableNum) {
        this.availableNum = availableNum;
    }

    public Integer getFreezeNum() {
        return freezeNum;
    }

    public void setFreezeNum(Integer freezeNum) {
        this.freezeNum = freezeNum;
    }

    public Integer getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(Integer totalNum) {
        this.totalNum = totalNum;
    }

    public boolean isCanSale() {
        return canSale;
    }

    public void setCanSale(boolean canSale) {
        this.canSale = canSale;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

}
